﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Wfrm_Mantenedor_Tareas.aspx.vb" Inherits="Web_AdministradorTask.Wfrm_Mantenedor_Tareas" %>
<%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Página sin título</title>
    <script src="js/jquery-1.5.2.min.js" type="text/javascript"></script>
    <script src="js/jquery.corners.js" type="text/javascript"></script>
   <link href="css/style.css" rel="stylesheet" type="text/css" />
   <link href="css/PrintStyle.css" rel="stylesheet" type="text/css" />
 </head>
 
<body bgcolor="#004C92">
    <form id="form1" runat="server">
    <div>
    <table width="910" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff"  class ="rounded"
            style="height:560px"> 	
	  <tr> 
		<td align="center" valign="top" height="500"  >
			<table width ="900px"  >
        			<tr>
                			<td>
        <table>
          <tr>
                <td align="center" >
                    <div id="cuadro1"  class ="rounded">
                        
                        <anthem:Label ID="Label10" runat="server" CssClass="TituloFormulario">INTERFAZ DE SEGUROS ELIMINADOS</anthem:Label>
                        
                    </div>     
               </td>
            </tr>
            
            <tr>
                <td align ="center">
                    <anthem:Panel ID="Panel1" runat="server" CssClass="PanelMensaje_informacion rounded"   ForeColor="#003399" Visible="False">
                                                               <table>
                                            <tr>
                                                <td valign="middle" align="right"   >
                                                      <anthem:Image ID="img_mensaje" runat="server" />
                                                </td>
                                                <td valign="middle">
                                                    <anthem:Label ID="lbl_mensaje" runat="server"></anthem:Label>
                                                </td>
                                            </tr>
                                        </table> 
                           
                                                     
                    </anthem:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 1000px">
                        <tr>
                            <td>
                                <anthem:Label ID="Label2" runat="server">Busqueda de Tareas</anthem:Label>
                                <anthem:Panel ID="pnl_busqueda" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded" Height="189px">
                                    <table width="800px">
                                        <tr>
                                            <td colspan="2">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <anthem:Label ID="Label1" runat="server">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nombre de la Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="Txt_Tarea_Buscar" runat="server" Width="210px"></anthem:TextBox>
                                            </td>
                                            <td>
                                                <anthem:ImageButton ID="ImgBuscar_Tareas" runat="server" style="width: 90px; height: 22px" 
                                                    Height="16px" ImageUrl="~/imagenes/buscar_up_a.gif" 
                                                    AutoUpdateAfterCallBack="True"  />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <anthem:Panel ID="panel_grilla_tareas" runat="server" ScrollBars="Vertical">
                                                    <anthem:DataGrid ID="DG_Tareas" runat="server" AutoGenerateColumns="False" 
                                                        CellPadding="4" Height="33px" Width="768px" AllowPaging="True" 
                                                        PageSize="4">
                                                        <Columns>
                                                            <asp:BoundColumn DataField="ID_TASK" HeaderText="id_tarea"></asp:BoundColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:LinkButton ID="LinkButton1" runat="server" EnableCallBack="true" 
                                                                        EnabledDuringCallBack="False" onclick="LinkButton1_Click" Text="Editar"></anthem:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:LinkButton ID="LinkButton3" runat="server" EnableCallBack="true" 
                                                                        EnabledDuringCallBack="False" onclick="LinkButton3_Click">Habilitar / Deshabilitar Tarea</anthem:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">Historial</anthem:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn DataField="S_NOMBRE_TASK" HeaderText="Nombre Tarea">
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="S_ESTADO_TASK" HeaderText="Estado Tarea">
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="N_ESTADO_EJECUCION" HeaderText="Estado Ejecución">
                                                            </asp:BoundColumn>
                                                        </Columns>
                                                        <PagerStyle Mode="NumericPages" />
                                                    </anthem:DataGrid>
                                                </anthem:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:Label ID="Label3" runat="server">Agregar o Modificar</anthem:Label>
                                <anthem:Panel ID="Panel2" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded" Height="200px">
                                    <table>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label4" runat="server">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nombre Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_nombre_tarea" runat="server" Width="281px"></anthem:TextBox>
                                            </td>
                                            <td align="left">
                                                <anthem:Label ID="Label11" runat="server">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tipo Agendamiento</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:DropDownList ID="cmb_TipoAgendamiento" runat="server" 
                                                    AutoCallBack="True" Height="23px" Width="210px">
                                                </anthem:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label5" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lista Email</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_lista_email" runat="server" TextMode="MultiLine" 
                                                    TipoTextBox="Email" Width="290px"></anthem:TextBox>
                                            </td>
                                            <td align="left">
                                                <anthem:Label ID="Label12" runat="server">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DLL Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_dll_tarea" runat="server" Width="210px"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label6" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject Error</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_subject_error" runat="server" Width="286px"></anthem:TextBox>
                                            </td>
                                            <td align="left">
                                                <anthem:Label ID="Label13" runat="server">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clase Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_clase_tarea" runat="server" Width="210px"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label7" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject Ok</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_subject_ok" runat="server" Width="285px"></anthem:TextBox>
                                            </td>
                                            <td align="left">
                                                <anthem:Label ID="Label14" runat="server">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Metodo Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_metodo_tarea" runat="server" Width="210px"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label8" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email Origen</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_email_origen" runat="server" TipoTextBox="Email" 
                                                    Width="287px"></anthem:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <anthem:TextBox ID="txt_id_tarea" runat="server" Width="58px"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label9" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tipo Tarea</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:DropDownList ID="cmb_tipo_Tarea" runat="server" Height="20px" 
                                                    Width="290px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <anthem:TextBox ID="txt_ruta" runat="server"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label15" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ruta Resp. Interfaz</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:TextBox ID="txt_ruta_respaldo_interfaz" runat="server" Width="287px"></anthem:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:ImageButton ID="ImgGraba_Continua" runat="server"  
                                    style="width: 90px; height: 22px" ImageUrl="~/imagenes/guardar_up_a.gif"  />
                                <anthem:ImageButton ID="ImageButton3" runat="server" Height="23px" 
                                    ImageUrl="~/imagenes/btnnueva.png" Width="93px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:Label ID="Label21" runat="server">Agendamiento por Día</anthem:Label>
                                <anthem:Panel ID="Panel3" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded" Visible="False">
                                    <table style="width: 558px">
                                        <tr>
                                            <td>
                                                <anthem:Label ID="Label19" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Día de la Semana</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:Label ID="Label20" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hora</anthem:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <anthem:DropDownList ID="cmb_agenda_diaSemana" runat="server" Height="20px" 
                                                    Width="290px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                <anthem:DropDownList ID="cmb_agenda_diaSemana_hora" runat="server" 
                                                    Height="20px" Width="103px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                <anthem:ImageButton ID="ImgGraba_AgeDiaSemana" runat="server" 
                                                    AutoUpdateAfterCallBack="True" EnabledDuringCallBack="False"  style="width: 90px; height: 22px" ImageUrl="~/imagenes/Agregar_up_a.gif" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <anthem:DataGrid ID="Dg_Agenda_DiaSemana" runat="server" 
                                                    AutoGenerateColumns="False" Width="517px">
                                                    <Columns>
                                                        <asp:TemplateColumn>
                                                            <ItemTemplate>
                                                                <anthem:ImageButton ID="ImgBuscar_Tareas0" runat="server" 
                                                                    EnabledDuringCallBack="False" OnClientClick="return confirm('Seguro de Eliminar?');" 
                                                                    onclick="ImgBuscar_Tareas0_Click" 
                                                                    Height="17px" ImageUrl="~/imagenes/del.png" Width="17px" />
                                                             </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn DataField="N_DIA" HeaderText="Día"></asp:BoundColumn>
                                                        <asp:BoundColumn DataField="ID_TASK_DIA_SEMANA" HeaderText="id_dia">
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="N_HORA" HeaderText="Hora"></asp:BoundColumn>
                                                    </Columns>
                                                </anthem:DataGrid>
                                            </td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:Label ID="Label16" runat="server">Agendamiento Por Fecha</anthem:Label>
                                <anthem:Panel ID="Panel4" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded" Visible="False">
                                    <table >
                                        <tr>
                                            <td>
                                                <anthem:Label ID="Label23" runat="server">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fecha</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:Label ID="Label22" runat="server">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hora</anthem:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <anthem:TextBox ID="txt_Agenda_Fecha" runat="server" Width="102px" 
                                                    Enabled="False"></anthem:TextBox>
                                                &nbsp;<anthem:ImageButton ID="ImageButton2" runat="server" 
                                                    ImageUrl="~/imagenes/calendar.gif" />
                                                <anthem:Calendar ID="Calendar1" runat="server" BackColor="White" 
                                                    BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" 
                                                    DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                                                    ForeColor="#003399" Height="200px" Width="220px">
                                                    <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                                    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                                                    <WeekendDayStyle BackColor="#CCCCFF" />
                                                    <OtherMonthDayStyle ForeColor="#999999" />
                                                    <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                                                    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                                                    <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                                                    <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" 
                                                        Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                                                </anthem:Calendar>
                                            </td>

                                                   <script type="text/javascript">
                                                        Calendar.setup({
                                                            inputField: "txt_Agenda_Fecha",
                                                            ifFormat: "%d-%m-%Y",
                                                            button: "btnFechaDesde",
                                                            align: "Tl",
                                                            singleClick: true
                                                        });
function btnFechaDesde_onclick() {

}

                                                 </script>
                                                 
                                            <td>
                                                <anthem:DropDownList ID="cmb_agenda_fecha_hora" runat="server" Height="20px" 
                                                    Width="103px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                <anthem:ImageButton ID="ImgGraba_AgeFecha" runat="server" 
                                                    AutoUpdateAfterCallBack="True" EnabledDuringCallBack="False"   style="width: 90px; height: 22px" ImageUrl="~/imagenes/Agregar_up_a.gif" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <anthem:DataGrid ID="Dg_Agenda_fecha" runat="server" 
                                                    AutoGenerateColumns="False" Width="517px">
                                                    <Columns>
                                                        <asp:TemplateColumn>
                                                            <ItemTemplate>
                                                                <anthem:ImageButton ID="ImgBuscar_Tareas2" runat="server" 
                                                                    EnabledDuringCallBack="False" OnClientClick="return confirm('Seguro de Eliminar?');" 
                                                                    onclick="ImgBuscar_Tareas2_Click" 
                                                                    Height="17px" ImageUrl="~/imagenes/del.png" />
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn DataField="N_FECHA" HeaderText="Fecha"></asp:BoundColumn>
                                                        <asp:BoundColumn DataField="ID_TASK_FECHA" HeaderText="id_Fecha">
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="N_HORA" HeaderText="Hora"></asp:BoundColumn>
                                                    </Columns>
                                                </anthem:DataGrid>
                                            </td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:Label ID="Label17" runat="server">Agendamiento Por Hora</anthem:Label>
                                <anthem:Panel ID="Panel5" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded">
                                    <table style="width: 400px">
                                        <tr>
                                            <td style="width: 108px">
                                                <anthem:Label ID="Label25" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ejecución cada </anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:DropDownList ID="cmb_Agenda_Horas" runat="server" Height="20px" 
                                                    Width="103px">
                                                </anthem:DropDownList>
                                                &nbsp;<anthem:Label ID="Label24" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Horas</anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:ImageButton ID="ImgGraba_AgeHoras" runat="server" 
                                                    AutoUpdateAfterCallBack="True" EnabledDuringCallBack="False"   style="width: 90px; height: 22px" ImageUrl="~/imagenes/Agregar_up_a.gif"/>
                                            </td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <anthem:Label ID="Label18" runat="server">Agendamiento Por Día/Mes</anthem:Label>
                                <anthem:Panel ID="Panel6" runat="server" 
                                    CssClass="PanelIngresoDatos  rounded">
                                    <table style="width: 457px">
                                        <tr>
                                            <td style="width: 135px">
                                                <anthem:Label ID="Label27" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ejecución Todos los</anthem:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                <anthem:Label ID="Label26" runat="server">
                                                &nbsp;&nbsp;&nbsp;Hora</anthem:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 135px">
                                                <anthem:DropDownList ID="cmb_Agenda_Dia_Mes" runat="server" Height="20px" 
                                                    Width="103px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                &nbsp;<anthem:Label ID="Label28" runat="server">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;de Cada Mes</anthem:Label>
                                                &nbsp;</td>
                                            <td>
                                                <anthem:DropDownList ID="cmb_agenda_fecha_hora0" runat="server" Height="20px" 
                                                    Width="103px">
                                                </anthem:DropDownList>
                                            </td>
                                            <td>
                                                <anthem:ImageButton ID="ImgGraba_AgeDiaMes" runat="server" 
                                                    AutoUpdateAfterCallBack="True" EnabledDuringCallBack="False" 
                                                      style="width: 90px; height: 22px" ImageUrl="~/imagenes/Agregar_up_a.gif" />
                                            </td>
                                        </tr>
                                    </table>
                                </anthem:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
            <anthem:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imagenes/btnconfigurartarea.png" 
                                    style="width: 120px; margin-left: 0px;" Height="16px" Width="21px" />
                                        </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    
    </td>
        			</tr>
    
    			</table>
		</td> 
	</tr> 
	<tr>
	    <td align="right">
            &nbsp;</td>
	</tr>
    </table>
    </div>
    </form>
    </body>
</html>